home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / METAKIT.ZIP / EXAMPLES / CATFISH / SETUPDLG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-09  |  1.8 KB  |  67 lines

  1. //  setupdlg.h  -  setup dialog sample code
  2. //
  3. //  This is a part of the MetaKit library.
  4. //  Copyright (c) 1996 Meta Four Software.
  5. //  All rights reserved.
  6. /////////////////////////////////////////////////////////////////////////////
  7.  
  8. #include "scandisk.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CSetupDialog dialog
  12.  
  13. class CSetupDialog : public CDialog, public cStatusHandler
  14. {
  15. // Construction
  16. public:
  17.     CSetupDialog(CWnd* pParent = NULL); // standard constructor
  18.  
  19. // Dialog Data
  20.     //{{AFX_DATA(CSetupDialog)
  21.     enum { IDD = IDD_SETUP_DIALOG };
  22.     CButton m_okBtn;
  23.     CButton m_browseBtn;
  24.     CButton m_deleteBtn;
  25.     CButton m_addBtn;
  26.     CButton m_updateBtn;
  27.     CStatic m_status;
  28.     CEdit   m_root;
  29.     CString m_name;
  30.     //}}AFX_DATA
  31.  
  32. private:
  33.     CString m_origRoot;
  34.     BOOL m_exists;
  35.     int m_timer;
  36.     BOOL m_allowScan;
  37.     CMyEdit m_nameEditCtrl;
  38.     
  39. // Implementation
  40. protected:
  41.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  42.  
  43.     virtual bool UpdateStatus(const char* text);
  44.     
  45.     void NameChange(BOOL delay);
  46.     void ScanDirectories();
  47.     void InspectCatalog();
  48.     void AdjustButtons(BOOL inScan_ =FALSE);
  49.     
  50.     // Generated message map functions
  51.     //{{AFX_MSG(CSetupDialog)
  52.     afx_msg void OnAddBtn();
  53.     virtual BOOL OnInitDialog();
  54.     afx_msg void OnUpdateBtn();
  55.     afx_msg void OnDelBtn();
  56.     afx_msg void OnBrowseBtn();
  57.     afx_msg void OnChangeName();
  58.     afx_msg void OnChangeRoot();
  59.     afx_msg void OnTimer(UINT nIDEvent);
  60.     afx_msg void OnKillfocusRoot();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // $Id: setupdlg.h,v 1.2 1996/12/04 14:49:39 jcw Exp $
  67.